import React, { Suspense } from "react";
import ReactDOM from "react-dom/client";
import App from "./App.tsx";
import "./index.css";
import { HashRouter } from "react-router-dom";
import ErrorBoundary from "antd/es/alert/ErrorBoundary";
import { Spin } from "antd";

ReactDOM.createRoot(document.getElementById("root")!).render(
  <React.StrictMode>
    <HashRouter>
      <ErrorBoundary>
        <Suspense fallback={<Spin />}>
          <App />
        </Suspense>
      </ErrorBoundary>
    </HashRouter>
  </React.StrictMode>
);
